home *** CD-ROM | disk | FTP | other *** search
/ World of Education / World of Education.iso / world_i / inside.zip / 12 < prev    next >
Text File  |  1991-06-14  |  1KB  |  50 lines

  1. text/3/2
  2.     Bytes can also be used to
  3. represent instructions.  You could
  4. invent a code in which each of the
  5. 256 possible combinations of bits
  6. is a different instruction to the
  7. computer.  For instance, if 34 means
  8. put a red dot in the middle of the
  9. screen, and if 176 means move that
  10. dot to the left... You get the idea,
  11. that's programming. Of course there
  12. are more than 256 things you could
  13. have the computer do, so
  14. combinations of many bytes, each
  15. representing a simple instruction,
  16. can be used to build a complex
  17. instruction. 
  18.  
  19. ~
  20. text/4/146
  21.    Programmers don't actually have
  22. to remember the numbers assigned to
  23. bytes, because their programming
  24. ~
  25. text/342/3
  26. languages themselves are programs
  27. that assign English-like words to
  28. the instructions contained in the
  29. bytes. Here is a sample from a
  30. programmer's scrap pile, this
  31. example is actually from the
  32. program that is running in the
  33. background right now - What's In
  34. That Box:
  35. ~
  36. text/342/94
  37.   begin
  38.     cleardevice;
  39.     assign(outfile,'help');
  40.     readfile;
  41.     u := readkey;
  42.     menu;
  43.   end; {procedure help}
  44. ~
  45.  
  46. rectangle/348/90/615/159
  47. text/339/162
  48.  (This pops up the help screen.)
  49. ~
  50.